<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>
<body>
  <div id="app">
      <mycom :list='list'></mycom>
  </div>
  <template id="app1">
      <div>
          <h2 v-for='(item,index) in list'>{{item}}</h2>
      </div>
  </template>
  <script src="./vue.js"></script>
  <script>
      Vue.component('mycom',{
          props:['list'],

          data() {
              return {}
          },
          
          template: '#app1'
      })

    var vm = new Vue({
      el:'#app',
      data:{
          list:[1,2,3,4,5,6]
      },
      methods:{
      }
     });
  </script>
</body>
</html>
